package Organization;

import Staff.FulltimeStaff;
import Staff.ParttimeStaff;

public class HRDepartment extends Department {
    @Override
    public void analyze(FulltimeStaff fulltimeStaff) {
        System.out.println("正式员工: " + fulltimeStaff.getName() + " 每周工作时长: " + fulltimeStaff.getWorkHours());
    }

    @Override
    public void analyze(ParttimeStaff parttimeStaff) {
        System.out.println("临时员工: " + parttimeStaff.getName() + " 每周工作时长: " + parttimeStaff.getWorkHours());
    }
}
